package com.fenghongzhang.day012;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyReceiver3 extends BroadcastReceiver {

    private static final String TAG = "MyReceiver3";
    @Override
    public void onReceive(Context context, Intent intent) {
        //主线
        //启动一个页面, 或者启动一个服务.发送一个通知.
        Log.i(TAG, "onReceive: 33333");
        //是不是有序
        if(isOrderedBroadcast()){
            //终止广播传递
            abortBroadcast();
        }
    }
}
